package org.jackysoft.interceptor;

import java.lang.reflect.Method;

import com.opensymphony.xwork2.ActionInvocation;

public class BatchRemoveInterceptor extends AbstractInterceptor {

	/**
	 * 
	 */
	private static final long serialVersionUID = -7785595308665772420L;
	@Override
	public String intercept(ActionInvocation invokor) throws Exception {
		super.intercept(invokor);
							
		Method serviceRemoveBean = service.getClass().getMethod("remove",java.util.Collection.class);

		serviceRemoveBean.invoke(service, beans);

		return invokor.invoke();
	}
}
